package com.kaili.basic.service.impl;

/**
 * Created by xxx on 2019-03-07.
 */

import com.kaili.basic.mapper.WarehousingProductMapper;
import com.kaili.basic.pojo.entity.WarehousingProduct;
import com.kaili.basic.service.WarehousingProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xxx
 * @Copyright: Copyright (c) 2017
 * @Company: 杭州凯立通信有限公司
 */
@Service
public class WarehousingProductServiceImpl implements WarehousingProductService {
    @Autowired
    WarehousingProductMapper warehousingProductMapper;

    @Override
    public int addWarehousingProduct(WarehousingProduct warehousingProduct) {
        return warehousingProductMapper.addWarehousingProduct(warehousingProduct);
    }

    @Override
    public int deleteWarehousingProduct(WarehousingProduct warehousingProduct) {
        return warehousingProductMapper.deleteWarehousingProduct(warehousingProduct);
    }

    @Override
    public List<WarehousingProduct> getWarehousingProductList(Long applyId) {
        return warehousingProductMapper.getWarehousingProductList(applyId);
    }

    @Override
    public WarehousingProduct getWarehousingProductById(Long id) {
        return warehousingProductMapper.getWarehousingProductById(id);
    }
}
